Functional precision medicine